home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / WMS.CAB / plugin_description.asp < prev    next >
Encoding:
Text File  |  2003-02-21  |  13.6 KB  |  359 lines

  1. ∩╗┐<%@ Language=VBScript CODEPAGE=65001 %>
  2. <!--#include file="include/wmsLocStrings.inc"-->
  3. <!--#include file="include/wmsCommon.inc"-->
  4. <!--#include file="include/wmsHeader.inc"-->
  5. <!--#include file="include/wmsServerHash.inc"-->
  6. <!--#include file="include/wmsPlugins.inc"-->
  7. <!--#include file="include/wmsError.inc"-->
  8. <%
  9. '+-------------------------------------------------------------------------
  10. '
  11. '  Microsoft Windows Media
  12. '  Copyright (C) Microsoft Corporation. All rights reserved.
  13. '
  14. '  File:       Plugin_Description.asp
  15. '
  16. '  Contents:   Pop-up window used to display limit, plug-in, and property descriptions
  17. '
  18. '--------------------------------------------------------------------------
  19.  
  20. BeginErrorHandling
  21. on error resume next
  22.  
  23. Dim bDisplayPluginHelp
  24. Dim bDisplayLimitHelp
  25. Dim strLimitDescription
  26. Dim strLimitName
  27. Dim strPageTitle
  28.  
  29. bDisplayPluginHelp = FALSE
  30. bDisplayLimitHelp = FALSE
  31.  
  32. if( 0 < Len( qs( "limit" ) ) ) then
  33.  
  34.     bDisplayPluginHelp = FALSE
  35.     bDisplayLimitHelp = TRUE
  36.  
  37.     Dim dwWhichLimit
  38.     dwWhichLimit = CInt( qs( "limit" ) )
  39.     
  40.     if ( 0 = dwWhichLimit ) then
  41.         strLimitName = L_PLAYERCONNLIMITNAME_TEXT
  42.         strLimitDescription = L_LIMITTEXTDESC0_TEXT
  43.     elseif ( 1 = dwWhichLimit ) then
  44.         strLimitName = L_DISTCONNLIMITNAME_TEXT
  45.         strLimitDescription = L_LIMITTEXTDESC1_TEXT
  46.     elseif ( 2 = dwWhichLimit ) then
  47.         strLimitName = L_AGGPLAYERBWLIMITNAME_TEXT
  48.         strLimitDescription = L_LIMITTEXTDESC2_TEXT    
  49.     elseif ( 3 = dwWhichLimit ) then
  50.         strLimitName = L_DISTBWLIMITNAME_TEXT
  51.         strLimitDescription = L_LIMITTEXTDESC3_TEXT
  52.     elseif ( 4 = dwWhichLimit ) then
  53.         strLimitName = L_BWPERSTREAMPERPLAYERLIMITNAME_TEXT
  54.         strLimitDescription = L_LIMITTEXTDESC4_TEXT
  55.     elseif ( 5 = dwWhichLimit ) then
  56.         strLimitName = L_BWPEROUTDISTSTREAMLIMITNAME_TEXT
  57.         strLimitDescription = L_LIMITTEXTDESC5_TEXT
  58.     elseif ( 6 = dwWhichLimit ) then
  59.         strLimitName = L_CONNECTRATELIMITNAME_TEXT
  60.         strLimitDescription = L_LIMITTEXTDESC6_TEXT
  61.     elseif ( 7 = dwWhichLimit ) then
  62.         strLimitName = L_PLAYERINATOLIMITNAME_TEXT
  63.         strLimitDescription = L_LIMITTEXTDESC7_TEXT
  64.     elseif ( 8 = dwWhichLimit ) then
  65.         strLimitName = L_PLAYERCONNECTACKLIMITNAME_TEXT
  66.         strLimitDescription = L_LIMITTEXTDESC8_TEXT
  67.     elseif ( 9 = dwWhichLimit ) then
  68.         strLimitName = L_ODLIMCXNRATE_TEXT
  69.         strLimitDescription = L_LIMITTEXTDESC9_TEXT
  70.     elseif ( 10 = dwWhichLimit ) then
  71.         strLimitName = L_SRVINCOMINGBW_TEXT
  72.         strLimitDescription = L_LIMITTEXTDESC11_TEXT
  73.     elseif ( 30 = dwWhichLimit ) then
  74.         strLimitName = L_BWPERRAPIDSTARTLIMIT_TEXT
  75.         strLimitDescription = L_LIMITTEXTDESC10_TEXT
  76.     elseif ( 31 = dwWhichLimit ) then
  77.         strLimitName = L_GENDISTCACHING_TEXT
  78.         strLimitDescription = L_GENDISTCACHINGHELP_TEXT
  79.         bDisplayPluginHelp = FALSE
  80.         bDisplayLimitHelp = FALSE
  81.     elseif ( 32 = dwWhichLimit ) then
  82.         strLimitName = L_GENACCESSDIRWILD_TEXT
  83.         bDisplayPluginHelp = FALSE
  84.         bDisplayLimitHelp = FALSE
  85.         strLimitDescription = L_GENACCESSDIRWILDHELP_TEXT
  86.     elseif ( 34 = dwWhichLimit ) then
  87.         strLimitName = L_GENSTRMSPLITTING_TEXT
  88.         strLimitDescription = L_GENSTRMSPLITTINGHELP_TEXT
  89.         bDisplayPluginHelp = FALSE
  90.         bDisplayLimitHelp = FALSE
  91.     elseif ( 35 = dwWhichLimit ) then
  92.         strLimitName = L_GENAUTOSTARTPP_TEXT
  93.         strLimitDescription = L_GENAUTOSTARTPPHELP_TEXT
  94.         bDisplayPluginHelp = FALSE
  95.         bDisplayLimitHelp = FALSE
  96.     elseif ( 36 = dwWhichLimit ) then
  97.         strLimitName = L_GENPLAYERCACHING_TEXT
  98.         strLimitDescription = L_GENPLAYERCACHINGHELP_TEXT
  99.         bDisplayPluginHelp = FALSE
  100.         bDisplayLimitHelp = FALSE
  101.     elseif ( PPLIMDESCOFFSET = dwWhichLimit ) then
  102.         strLimitName = L_PLAYERCONNLIMITNAME_TEXT
  103.         strLimitDescription = L_LIMITPPTEXTDESC20_TEXT
  104.     elseif ( ( PPLIMDESCOFFSET + 1 ) = dwWhichLimit ) then
  105.         strLimitName = L_DISTCONNLIMITNAME_TEXT
  106.         strLimitDescription = L_LIMITPPTEXTDESC21_TEXT
  107.     elseif ( ( PPLIMDESCOFFSET + 2 ) = dwWhichLimit ) then
  108.         strLimitName = L_AGGPLAYERBWLIMITNAME_TEXT
  109.         strLimitDescription = L_LIMITPPTEXTDESC22_TEXT
  110.     elseif ( ( PPLIMDESCOFFSET + 3 ) = dwWhichLimit ) then
  111.         strLimitName = L_DISTBWLIMITNAME_TEXT
  112.         strLimitDescription = L_LIMITPPTEXTDESC23_TEXT
  113.     elseif ( ( PPLIMDESCOFFSET + 4 ) = dwWhichLimit ) then
  114.         strLimitName = L_BWPERSTREAMPERPLAYERLIMITNAME_TEXT
  115.         strLimitDescription = L_LIMITPPTEXTDESC24_TEXT
  116.     elseif ( ( PPLIMDESCOFFSET + 5 ) = dwWhichLimit ) then
  117.         strLimitName = L_BWPEROUTDISTSTREAMLIMITNAME_TEXT
  118.         strLimitDescription = L_LIMITPPTEXTDESC25_TEXT
  119.     elseif ( ( PPLIMDESCOFFSET + 6 ) = dwWhichLimit ) then
  120.         strLimitName = L_CONNECTRATELIMITNAME_TEXT
  121.         strLimitDescription = L_LIMITTEXTDESC6_TEXT
  122.     elseif ( ( PPLIMDESCOFFSET + 7 ) = dwWhichLimit ) then
  123.         strLimitName = L_PLAYERINATOLIMITNAME_TEXT
  124.         strLimitDescription = L_LIMITTEXTDESC7_TEXT
  125.     elseif ( ( PPLIMDESCOFFSET + 8 ) = dwWhichLimit ) then
  126.         strLimitName = L_PLAYERCONNECTACKLIMITNAME_TEXT
  127.         strLimitDescription = L_LIMITTEXTDESC8_TEXT
  128.     elseif ( ( PPLIMDESCOFFSET + 9 ) = dwWhichLimit ) then
  129.         strLimitName = L_ODLIMCXNRATE_TEXT
  130.         strLimitDescription = L_LIMITTEXTDESC9_TEXT
  131.     else
  132.         strLimitName = "??"
  133.         strLimitDescription = "??"
  134.     end if
  135.  
  136. elseif( "" <> qs( "credentials" ) ) then
  137.     
  138.     bDisplayPluginHelp = FALSE
  139.     bDisplayLimitHelp = FALSE
  140.  
  141.     Dim dwWhichCredOption
  142.     dwWhichCredOption = CInt( qs( "credentials" ) )
  143.     
  144.     if ( 0 = dwWhichCredOption ) then
  145.         strLimitName = L_DISTCREDENTIALSNAME_TEXT
  146.         strLimitDescription = L_DISTCREDDESC0_TEXT
  147.     else
  148.         strLimitName = "??"
  149.         strLimitDescription = "??"
  150.     end if
  151.  
  152. elseif( "" <> qs( "networking" ) ) then
  153.     
  154.     bDisplayPluginHelp = FALSE
  155.     bDisplayLimitHelp = FALSE
  156.  
  157.     strLimitName = L_BUFFERSPSETTING_TEXT
  158.     strLimitDescription = L_BUFFERINGDESC_TEXT
  159.  
  160. elseif( "" <> qs( "cacheproxyexp" ) ) then
  161.     
  162.     bDisplayPluginHelp = FALSE
  163.     bDisplayLimitHelp = FALSE
  164.  
  165.     strLimitName = L_CACHEPROXSPPROP_TEXT
  166.     strLimitDescription = L_CPEXPIRDESC_TEXT
  167.     
  168. elseif( "" <> qs( "cacheproxyexpOD" ) ) then
  169.     
  170.     bDisplayPluginHelp = FALSE
  171.     bDisplayLimitHelp = FALSE
  172.  
  173.     strLimitName = L_CACHEPROXSPPROPOD_TEXT
  174.     strLimitDescription = L_CPEXPIRDESC_TEXT
  175.  
  176. elseif( "" <> qs( "wireless" ) ) then
  177.     
  178.     bDisplayPluginHelp = FALSE
  179.     bDisplayLimitHelp = FALSE
  180.  
  181.     strLimitName = L_FECNAME_TEXT
  182.     strLimitDescription = L_FECDESC_TEXT
  183.  
  184. elseif( 0 = StrComp( qs("category"), CAT_CRED, vbTextCompare ) ) then
  185.     
  186.     strLimitName = L_CREDNAME_TEXT
  187.     strLimitDescription = L_CREDDESC_TEXT
  188.  
  189. else
  190.     bDisplayPluginHelp = TRUE
  191.     bDisplayLimitHelp = FALSE
  192.     ConnectToPlugin
  193. end if
  194.     
  195. if bDisplayPluginHelp then
  196.     strPageTitle = g_strDecodedInstance
  197. else
  198.     strPageTitle = strLimitName
  199. end if
  200.  
  201. WriteHTMLHeader( SafeUnescape( strPageTitle ) )
  202. %>
  203. <link rel="stylesheet" type="text/css" href="<%= Session( "cssName" ) %>">
  204. <% WritePluginJSUtils %>
  205. <style>
  206. BODY  
  207. {
  208.     color : #000000;
  209.     background-color : #FFFFFF;
  210.     border-style : none;
  211.     font-size : x-small;
  212.     font-family : Tahoma, Verdana, Century Gothic, Sans Serif;
  213.     font-weight : normal;
  214.     font-style : normal;
  215. }
  216. .dialog 
  217. {
  218.     color: #000000;
  219.     background-color: #FFFFFF;
  220.     border-color: #999999;
  221.     border-style: none;
  222.     border-width: 1px;
  223.     font-size : x-small;
  224.     font-weight : normal;
  225.     margin-top: 0;
  226.     margin-bottom: 0;
  227. }
  228. .subhead 
  229. {
  230.     border-style: none;
  231.     color: #000000;
  232.     font-size : x-small;
  233.     font-weight : bold;
  234.     margin-top: 0;
  235.     margin-bottom: 0;
  236. }
  237. </style>
  238. </head>
  239. <body leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" bgcolor="#ffffff" height="350" oncontextmenu="JavaScript:event.cancelBubble=true;return false;">
  240. <form name="simple" method="get" action="JavaScript:window.close();">
  241. <input type="hidden" name="op" value="apply">
  242. <table height="100%" width="100%" align="left" valign="top" bgcolor="#FFFFFF" numcols="2" cols="2" height="<%= DESCRIPTIONDLGWIDTH %>" width="<%= DESCRIPTIONDLGHEIGHT %>" cellspacing="2" cellpadding="0" border="0" margin-bottom="0" margin-top="0">
  243. <tr valign="top">
  244.     <td align="left" valign="top" width="100%" class="dialog">
  245.         <%' <!-- Begin Nested Table for Name, Author, Copyright--> %>
  246.         <table class="dialog" bgcolor="#FFFFFF" cellspacing="1" cellpadding="1" border="0" width="100%" height="80px" cols=2>
  247.         <tr valign="top">
  248.             <td width="100%" valign="top">
  249.                 <table valign="top" class="dialog" bgcolor="#FFFFFF" cellspacing="1" cellpadding="1" border="0" width="100%" numcols="3" numrows="3">
  250.                 <tr valign="top">
  251.                     <td class="subhead" nowrap>
  252.                         <%
  253.                         if( bDisplayPluginHelp ) then
  254.                             Response.Write( Server.HTMLEncode( L_PLUGINNAMECOLON_TEXT ) )
  255.                         elseif( bDisplayLimitHelp ) then
  256.                             Response.Write( Server.HTMLEncode( L_LIMITNAMECOLON_TEXT ) )
  257.                         else
  258.                             Response.Write( Server.HTMLEncode( L_PROPNAMECOLON_TEXT ) )
  259.                         end if
  260.                         %>
  261.                     </td>
  262.                     <td> </td>
  263.                     <td width="100%" class="dialog">
  264.                         <%
  265.                         if( bDisplayPluginHelp ) then
  266.                             Response.Write( Server.HTMLEncode( g_objPlugin.Properties( "Name" ) ) )
  267.                         else
  268.                             Response.Write( Server.HTMLEncode( strLimitName ) )
  269.                         end if %>
  270.                     </td>
  271.                 </tr>
  272.                 <tr valign="top">
  273.                     <td class="subhead" nowrap>
  274.                         <%= L_AUTHORCOLON_TEXT %>
  275.                     </td>
  276.                     <td> </td>
  277.                     <td width="100%" class="dialog">
  278.                         <%
  279.                         if( bDisplayPluginHelp ) then
  280.                             Response.Write( Server.HTMLEncode( g_objPlugin.Properties( "Author" ) ) )
  281.                         elseif( bDisplayLimitHelp ) then
  282.                             Response.Write( Server.HTMLEncode( L_MICROSOFT_TEXT ) )
  283.                         else
  284.                             Response.Write( Server.HTMLEncode( L_MICROSOFT_TEXT ) )
  285.                         end if
  286.                         %>
  287.                     </td>
  288.                 </tr>
  289.                 <tr valign="top">
  290.                     <td class="subhead" nowrap>
  291.                         <%= Server.HTMLEncode( L_COPYRIGHTCOLON_TEXT ) %>
  292.                     </td>
  293.                     <td> </td>
  294.                     <td width="100%" class="dialog">
  295.                         <%
  296.                         if( bDisplayPluginHelp ) then
  297.                             Response.Write( Server.HTMLEncode( g_objPlugin.Properties( "Copyright" ) ) )
  298.                         elseif( bDisplayLimitHelp ) then
  299.                             Response.Write( RemoveDangerousCharacters( L_COPYRIGHT_TEXT ) )
  300.                         else
  301.                             Response.Write( RemoveDangerousCharacters( L_COPYRIGHT_TEXT ) )
  302.                         end if
  303.                         %>
  304.                     </td>
  305.                 </tr>
  306.                 </table>
  307.             </td>
  308.             <td class="dialog" align="right" valign="top" width="121" height="111">
  309.                 <img src="..\..\img\winmedia.gif" width="121" height="111" border="0" align="right">
  310.             </td>
  311.         </tr>
  312.         </table>
  313.     </td>
  314. </tr>
  315. <tr valign="top" height="1%">
  316.     <td class="subhead" colspan="2" nowrap>
  317.          <%= Server.HTMLEncode( L_DESCRIPTIONCOLON_TEXT ) %>
  318.     </td>
  319. </tr>
  320. <tr valign="top" height="100%">
  321.     <td class="dialog" colspan="2" align="left" valign="top">
  322.         <table width="100%" border="0" valign="top" cols=3>
  323.         <tr>
  324.             <td width="4">
  325.                 <img src="..\..\img\WMSspacer.gif" width=4 border=0>
  326.             </td>
  327.             <td class="dialog" align="left" valign="top">
  328.                 <%
  329.                 if( bDisplayPluginHelp ) then 
  330.                     strPluginDescription = Server.HTMLEncode( g_objPlugin.Properties( "Description" ) )
  331.                     if( 0 = Len( strPluginDescription ) )then
  332.                         strPluginDescription = "<i>" & Server.HTMLEncode( L_NODESCRIPTION_TEXT ) & "</i>"
  333.                     end if
  334.                     Response.Write( strPluginDescription )
  335.                 else 
  336.                     Response.Write( Server.HTMLEncode( strLimitDescription ) )
  337.                 end if %>            
  338.             </td>
  339.             <td width="4px">
  340.                 <img src="..\..\img\WMSspacer.gif" width=4 border=0>
  341.             </td>
  342.         </tr>
  343.         <tr valign="bottom">
  344.             <td class="dialog" align="center" colspan="2" valign="top">
  345.                 <br><button align="center" value="" name="cancel" onclick="JavaScript:window.close();" tabIndex=1 ID="Submit1"> <%= Server.HTMLEncode( L_CLOSEBUTTONSPACED_TEXT ) %> </button>
  346.             </td>
  347.         </tr>
  348.         </table>
  349.     </td>
  350. </tr>
  351. </table>
  352. <!-- End Main Table -->
  353. </form>
  354. </body>
  355. </html>
  356.  
  357. <%
  358. PluginsASPCleanup
  359. %>